package app.thread;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;


@Entity
@Table(name="hd_setting")
public class HdSetting implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String id;
	private String serialPort = "COM3";//串口
	private Integer intervalTime = 60000;//采集间隔
	private Integer standardValue = 1000;//标准值
	private Integer missValue = 200;//误差值
	private Date createTime;
	private int isUse;
	
	@Id
	@Column(name="ID", length=40, nullable=false)
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	@Column(name="SERIAL_PORT", length=50, nullable=true)
	public String getSerialPort() {
		return serialPort;
	}
	public void setSerialPort(String serialPort) {
		this.serialPort = serialPort;
	}
	@Column(name="INTERVAL_TIME", length=10, nullable=true)
	public Integer getIntervalTime() {
		return intervalTime;
	}
	public void setIntervalTime(Integer intervalTime) {
		this.intervalTime = intervalTime;
	}
	@Column(name="STANDARD_VALUE", length=10, nullable=true)
	public Integer getStandardValue() {
		return standardValue;
	}
	public void setStandardValue(Integer standardValue) {
		this.standardValue = standardValue;
	}
	@Column(name="MISS_VALUE", length=10, nullable=true)
	public Integer getMissValue() {
		return missValue;
	}
	public void setMissValue(Integer missValue) {
		this.missValue = missValue;
	}
	@Column(name="CREATE_TIME", length=400, nullable=true)
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name="IS_USE", length=1, nullable=true)
	public int getIsUse() {
		return isUse;
	}

	public void setIsUse(int isUse) {
		this.isUse = isUse;
	}
}